package top.lixunda.demo.seata.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Xumda
 * @since 2019-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DbOrder extends Model<DbOrder> {

    private static final long serialVersionUID=1L;

    @TableId(value = "o_id", type = IdType.AUTO)
    private Integer oId;

    @TableField("o_good_id")
    private Integer oGoodId;

    @TableField("o_account_id")
    private Integer oAccountId;

    @TableField("o_price")
    private Integer oPrice;


    @Override
    protected Serializable pkVal() {
        return this.oId;
    }

}
